<div th:fragment="first" >
  <p>first</p>
</div>
<div th:fragment="second">
  <p>second</p>
</div>
<div th:fragment="thrid">
  <p>thrid</p>
</div>